package com.cxc.observer;

import java.util.Observable;

public class ConcreateOtherSubject extends Observable {
    private int state;
    public int getState(){
        return state;
    }
    public void setState(int state) {
        this.state = state;//目标对象的状态发生了改变
        setChanged();//表示目标对象已经做了更改
        this.notifyObservers();//通知所有的观察者
    }
}
